#pragma once

class CUIDeviceMainFrameWnd :
	public CWindowWnd,INotifyUI, IMessageFilterUI
{
public:
	CUIDeviceMainFrameWnd(void);
	~CUIDeviceMainFrameWnd(void);
	

	LPCTSTR GetWindowClassName() const { return _T("UIDeviceMainFrame"); };
	UINT GetClassStyle() const { return UI_CLASSSTYLE_DIALOG; };

public:
	LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
	LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	void Notify(TNotifyUI& msg);
	void Init();
	void OnFinalMessage(HWND /*hWnd*/);

private:
	CPaintManagerUI m_pm;

private:
	void ShowTable(int iIndex);
	void ShowNewPhoneTab();
	void ShowDownLoadTab();
	void ShowFavoritesTab();
};

